import org.apache.kudu.client.*;

//Kudu API删除表
public class DeleteTableDemo {
    public static void main(String[] args) {
        //获取客户端
        KuduClient.KuduClientBuilder builder = new KuduClient.KuduClientBuilder("linux121");
        builder.defaultSocketReadTimeoutMs(5000);
        KuduClient client = builder.build();

        try {
            client.deleteTable("student");
        } catch (KuduException e) {
            e.printStackTrace();
        } finally {
            try {
                client.close();
            } catch (KuduException e) {
                e.printStackTrace();
            }
        }
    }
}
